package com.lc.my_springframework.beans;

import java.util.HashMap;
import java.util.Map;

public class BookRepository {
    private Map<String, Book> books = new HashMap<String, Book>() {
        {
            this.put("1", new Book("1", "book name"));
        }
    };

    public Book findById(String id) {
        return books.get(id);
    }
}
